#include <iostream>
#include <vector>
#include <algorithm>

int vi[1024 * 1024] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

void print_vector(const int* v) {
    for (int i = 0; i < 10; i++) {
        std::cout << v[i] << " ";
    }
    std::cout << std::endl;
}

extern "C" void subfun(void){
    std::generate_n(vi, 100, [](){ return rand() % 100; });
    print_vector(vi);
}

